package com.yt.server.common.command;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import com.yt.server.mode.patterns.command.Command;

/**
 * @author LiuJ
 * @param <K>
 */
public abstract class BaseCommand<K> extends Command implements
		ApplicationContextAware{

	protected K service;

	protected ApplicationContext context;

	public abstract void setService(K service);

	@Override
	public void setApplicationContext(ApplicationContext arg0)
			throws BeansException {
		this.context = arg0;
	}
}
